package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
@JsonIgnoreProperties("handler")
public class TravelComment extends BaseDomain {

    /*游记评论用户*/
    private User user;

    /*游记评论时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    /*游记评论内容*/
    private String content;

    /*游记评论所属游记*/
    private Travel travel;

    private Long state;

    private Long authorId;

    private List<TravelCommentReply> travelCommentReplies = new ArrayList<>();//回复集合

}